<?php
namespace app\test\controller;

use tp5_lib\common\controller\TestBaseController;
use think\Db;

class QueryController extends TestBaseController
{
    public function index()
    {
        $query = Db::table("(SELECT `id` FROM `user`) AS `u`");
        $data = $query->select();
        return json($data);
    }
}
